package mio.model;

public class Stop {
	
	private int id;
	private String longName;
	private String description;
	private double decimalLatitude;
	private double decimalLongitude;
	
	public Stop(int id, String longName, String description){
		this.id = id;
		this.longName = longName;
		this.description = description;
		this.decimalLatitude = 0;
		this.decimalLongitude = 0;
	}
	
	public Stop(int id, String longName, String description, double decimalLatitude, double decimalLongitude){
		this.id = id;
		this.longName = longName;
		this.description = description;
		this.decimalLatitude = decimalLatitude;
		this.decimalLongitude = decimalLongitude;
	}
	
	public String toString(){
		return longName;
	}
	
	public boolean equals(Object obj){
		if(!(obj instanceof Stop))
			return false;
		
		Stop other = (Stop) obj;
		return id == other.getId();
	}

	public int getId() {
		return id;
	}

	public String getLongName() {
		return longName;
	}

	public String getDescription() {
		return description;
	}

	public double getDecimalLatitude() {
		return decimalLatitude;
	}

	public double getDecimalLongitude() {
		return decimalLongitude;
	}

}
